package com.zdb.order.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.*;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * @Author Lx
 * @Date 2020/8/29 18:10
 * @Version 1.0
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Setter
@Getter
@TableName("zdb_pms_product_info")
public class ProductInfo {
    @TableId("product_id")
    private String productId;                      //商品id
    @TableField("product_name")
    private String productName;                    //商品名称
    @TableField("product_price")
    private String productPrice;                   //商品单价
    @TableField("product_stock")
    private String productStock;                   //库存
    @TableField("product_icon")
    private String productIcon;                    //商品图片
    @TableField("product_description")
    private String productDescription;              //商品描述
    @TableField("product_status")
    private String productStatus;                   //商品状态 , 0正常 , 1下架
    @TableField("category_type")
    private String categoryType;                    //类目编号
    @TableField("create_time")
    private String createTime;                      //创建时间
    @TableField("update_time")
    private String updateTime;                      //修改时间

    @Override
    public String toString() {
        return "ProductInfo{" +
                "productId='" + productId + '\'' +
                ", productName='" + productName + '\'' +
                ", productPrice='" + productPrice + '\'' +
                ", productStock='" + productStock + '\'' +
                ", productIcon='" + productIcon + '\'' +
                ", productDescription='" + productDescription + '\'' +
                ", productStatus='" + productStatus + '\'' +
                ", categoryType='" + categoryType + '\'' +
                ", createTime='" + createTime + '\'' +
                ", updateTime='" + updateTime + '\'' +
                '}';
    }

    public String getProductId() {
        return productId;
    }

    public void setProductId(String productId) {
        this.productId = productId;
    }

    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    public String getProductPrice() {
        return productPrice;
    }

    public void setProductPrice(String productPrice) {
        this.productPrice = productPrice;
    }

    public String getProductStock() {
        return productStock;
    }

    public void setProductStock(String productStock) {
        this.productStock = productStock;
    }

    public String getProductIcon() {
        return productIcon;
    }

    public void setProductIcon(String productIcon) {
        this.productIcon = productIcon;
    }

    public String getProductDescription() {
        return productDescription;
    }

    public void setProductDescription(String productDescription) {
        this.productDescription = productDescription;
    }

    public String getProductStatus() {
        return productStatus;
    }

    public void setProductStatus(String productStatus) {
        this.productStatus = productStatus;
    }

    public String getCategoryType() {
        return categoryType;
    }

    public void setCategoryType(String categoryType) {
        this.categoryType = categoryType;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(String updateTime) {
        this.updateTime = updateTime;
    }
}
